﻿<Window x:Class="N6SCRM.APP.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:N6SCRM.APP.Controls"        
        Title="Nexus6Studio CRM"
        Width="1006px"
        Height="750px"
        SizeChanged="Window_SizeChanged"
        Style="{DynamicResource BackgroundStyle}"
        WindowStyle="None"
        Icon="/N6SCRM.APP;component/images/Ceres-icon.png"
        WindowStartupLocation="CenterScreen">


    <Window.Resources>
        <Style x:Key="BackgroundStyle" TargetType="{x:Type Window}">
            <Setter Property="Background">
                <Setter.Value>
                    <LinearGradientBrush EndPoint="0,1">
                        <GradientStop Offset="0" Color="LightBlue" />
                        <GradientStop Offset="0.55" Color="White" />
                        <GradientStop Offset="0.85" Color="White" />
                        <GradientStop Offset="1" Color="LightBlue" />
                    </LinearGradientBrush>
                </Setter.Value>
            </Setter>
        </Style>
       
        
    </Window.Resources>


    <!---BEGIN MAIN GRID LAYOUT-->    
    <Grid Name="RootLayoutGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="100px"/>
            <RowDefinition Height="*" />
            <RowDefinition Height="25px"/>            
        </Grid.RowDefinitions>               
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="100px" />            
        </Grid.ColumnDefinitions>


        <StackPanel
            Grid.Column="1"
            Grid.Row="0"
            Grid.ColumnSpan="1"            
            Orientation="Horizontal"
            MaxWidth="1006px"
            MaxHeight="20px"
            Name="UserWindowButtonsContainer"
            VerticalAlignment="Top"
            HorizontalAlignment="Right"
            FlowDirection="RightToLeft"
            Margin="5,5,5,5">
            <Button Name="btnClose" VerticalAlignment="Center" HorizontalAlignment="Center" Click="btnClose_Click" Background="LightGray" Height="25" Width="25" Margin="1,1,1,1" ToolTip="Close Application">
                <Image Source="images/cross.png" Width="16" Height="16" VerticalAlignment="Center" HorizontalAlignment="Center"/>
            </Button>
            <Button Name="btnInformation" VerticalAlignment="Center" HorizontalAlignment="Center" Click="btnAbout_Click" Background="LightGray" Height="25" Width="25" Margin="1,1,1,1" ToolTip="View About Information">
                <Image Source="images/information.png" Width="16" Height="16" VerticalAlignment="Center" HorizontalAlignment="Left"/>
            </Button>
        </StackPanel>



        <StackPanel
            Grid.Column="0"
            Grid.Row="0"
            Grid.ColumnSpan="1"
            Orientation="Horizontal"
            MaxWidth="1006px"
            MaxHeight="85px"
            Name="MainUserButtonsContainer"
            VerticalAlignment="Center"
            HorizontalAlignment="Stretch"
            FlowDirection="LeftToRight">
            <my:AnimatedLogo Height="75" Width="75" HorizontalAlignment="Left" Margin="10,0,10,10" x:Name="animatedLogo" ToolTip="Nexus6Studio CRM" BorderBrush="Black" BorderThickness="5"/>
            
            <!--<Button Name="btnClose" VerticalAlignment="Top" HorizontalAlignment="Left" Click="btnClose_Click" Background="LightGray" Height="65" Width="65" Margin="5,5,5,5" ToolTip="Close Application">
                <StackPanel Orientation="Vertical" Margin="0">
                    <Image Source="images/cross.png" Width="32" Height="32" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    <TextBlock FontSize="14" FontFamily="Segoe UI">Close</TextBlock>
                </StackPanel>
            </Button>-->

        </StackPanel>

        <StackPanel
            Grid.Column="0"
            Grid.Row="1"
            Grid.ColumnSpan="2"            
            Orientation="Vertical"
            MaxWidth="1006px"
            MaxHeight="800px"
            Name="UserControlContainer"
            VerticalAlignment="Top"
            HorizontalAlignment="Left"
            FlowDirection="LeftToRight">
        <my:Planner HorizontalAlignment="Left" Margin="5,5,5,5" x:Name="planner" VerticalAlignment="Top" Visibility="Hidden" />
        <my:Dashboard HorizontalAlignment="Left" Margin="5,5,5,5" x:Name="dashboard" VerticalAlignment="Top"  Visibility="Hidden"  />
        <my:CompositeAccountControl HorizontalAlignment="Left" Margin="5,5,5,5" x:Name="compositeAccountControl" VerticalAlignment="Top"  Visibility="Hidden"  />
        </StackPanel>

        <StackPanel
            Grid.Column="1"
            Grid.Row="2"
            Grid.ColumnSpan="1"            
            Orientation="Horizontal"
            MaxWidth="1006px"
            MaxHeight="20px"
            Name="UserUtilityButtonsContainer"
            VerticalAlignment="Center"
            HorizontalAlignment="Right"
            FlowDirection="LeftToRight">


        </StackPanel>

    </Grid>
<!---END MAIN GRID LAYOUT-->
        
</Window>
